package com.dingup.api.enums.log;

/**
 * Created by wancheng on 2018/10/12.
 */
public enum  PkLessonLogEnum {

    SUBJECTNAME("科目"),

    TEACHERID("老师"),

    BEGINTIME("开始时间"),

    ENDTIME("结束时间"),

    IFTRANSCRIBE("录播"),

    IFPLAYBACK("回放"),

    IFLIVE("直播"),

    CLASSID("班级"),
    //上台人数
    SEATNUM("上台人数"),
    //学生
    STUDENTIDS("学生"),
    //旁听
    OBSERVERIDS("旁听"),

    CLASSROOM("教室"),

    IFPRELESSON("是否预排课"),

    IFONLINELESSON("是否线上课");


    public static String getDescription(String name){
        String res = null;
        for (PkLessonLogEnum e:PkLessonLogEnum.values()) {
            if (e.name().toLowerCase().equals(name.toLowerCase())){
                res = e.description;
                break;
            }
        }
        return  res;
    }

    private String description;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    PkLessonLogEnum(String description) {
        this.description = description;
    }
}
